<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<h2
	style="font-size: 30px; font-weight: bold; padding-left: 270px; padding-top: 20px">Product</h2>
<div class="form" style="border: dotted 1px">
	<s:form action="productlist" method="post" cssClass="niceform"  theme="simple"  enctype="multipart/form-data">
		<div style="padding-left:200px;color:#f00;font-size:15px;font-weight:bold;">${requestScope["errorregister"]}</div>
		<fieldset>
			<dl>
				<dt>
					<label>Name:</label>
				</dt>
				<dd>
					<s:if test="%{#request.curProduct != null && #request.curProduct.getName() != null}">
						<s:textfield type="text" name="product.name" id="" size="54" value="%{#request.curProduct.getName()}" />
					</s:if>
					<s:else>
						<s:textfield type="text" name="product.name" id="" size="54" value="" />
					</s:else>
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="model">Model:</label>
				</dt>
				<dd>
					<s:if test="%{#request.curProduct != null && #request.curProduct.getModel() != null}">
						<s:textfield type="text" name="product.model" id="" size="54" value="%{#request.curProduct.getModel()}" />
					</s:if>
					<s:else>
						<s:textfield type="text" name="product.model" id="" size="54" value="" />
					</s:else>
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="sku">SKU:</label>
				</dt>
				<dd>
					<s:if test="%{#request.curProduct != null && #request.curProduct.getSku() != null}">
						<s:textfield type="text" name="product.sku" id="" size="54" value="%{#request.curProduct.getSku()}" />
					</s:if>
					<s:else>
						<s:textfield type="text" name="product.sku" id="" size="54" value="" />
					</s:else>
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="Rights">Price:</label>
				</dt>
				<dd>
					<s:if test="%{#request.curProduct != null && #request.curProduct.getPrice() != null}">
						<s:textfield type="text" name="product.price" id="" size="54" value="%{#request.curProduct.getPrice()}" />
					</s:if>
					<s:else>
						<s:textfield type="text" name="product.price" id="" size="54" value="" />
					</s:else>
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="upload">Upload a image 1:</label>
				</dt>
				<dd>
					<s:file theme="simple" name="fileUpload" />
					<!-- <input type="file" name="upload_image" id="upload_image" /> -->
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="upload">Upload a image 2:</label>
				</dt>
				<dd>
					<s:file theme="simple" name="fileUpload" />
					<!-- <input type="file" name="upload_image" id="upload_image" /> -->
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="upload">Upload a image 3:</label>
				</dt>
				<dd>
					<s:file theme="simple" name="fileUpload" />
					<!-- <input type="file" name="upload_image" id="upload_image" /> -->
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="upload">Upload a image 4:</label>
				</dt>
				<dd>
					<s:file theme="simple" name="fileUpload" />
					<!-- <input type="file" name="upload_image" id="upload_image" /> -->
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="upload">Upload a image 5:</label>
				</dt>
				<dd>
					<s:file theme="simple" name="fileUpload" />
					<!-- <input type="file" name="upload_image" id="upload_image" /> -->
				</dd>
			</dl>
			<dl>
				<dt style="float: left">
					<label for="Rights">Category:</label>
				</dt>
				<dd>
					<select size="1" name="category" id="rights">
						<s:iterator value="#request.categories">
							<option value="<s:property value="getIdcategory()"/>"><s:property value="getName()"/></option>
						</s:iterator>
					</select>
				</dd>
			</dl>
			<dl>
				<dt style="float: left">
					<label for="Rights">Device Brand:</label>
				</dt>
				<dd>
					<select size="1" name="devicebrand" id="rights">
						<s:iterator value="#request.lstDeviceBrand">
							<option value="<s:property value="getId()"/>"><s:property value="getName()"/></option>
						</s:iterator>
					</select>
				</dd>
			</dl>
			<dl>
				<dt style="float: left">
					<label for="Rights">Carierr:</label>
				</dt>
				<dd>
					<select size="1" name="carrier" id="rights">
						<s:iterator value="#request.lstCarrier">
							<option value="<s:property value="getIdcarrier()"/>"><s:property value="getName()"/></option>
						</s:iterator>
					</select>
				</dd>
			</dl>
			<dl>
				<dt style="float: left">
					<label for="Rights">OS:</label>
				</dt>
				<dd>
					<select size="1" name="os" id="rights">
						<s:iterator value="#request.lstOS">
							<option value="<s:property value="getIdos()"/>"><s:property value="getName()"/></option>
						</s:iterator>
					</select>
				</dd>
			</dl>
			<dl>
				<dt>
					<label for="interests">Available:</label>
				</dt>
				<dd>
					<s:checkbox style="margin-top: 25px" name="available" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Description:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="overview.description" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>What's Include:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="overview.includeItem" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Product Features:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="overview.productFeatures" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label style="font-size:20px; font-weight:bold">Specification</label>
				</dt>
			</dl>
			<dl>
				<dt>
					<label>Warranty Terms - Parts:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.warrantyTermsParts" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Warranty Terms - Labor:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.warrantyTermsLabor" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Height:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.height" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Width:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.width" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Depth:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.depth" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Weight:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.weight" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>LTE:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.lte" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Phone Style:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.phoneStyle" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Band and Mode:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.bandAndMode" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Technology Details:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.technologyDetails" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Talk Time:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.talkTime" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Standby Time:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.standbyTime" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Battery Type:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.batteryType" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Voice Activated:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.voiceActivated" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Internet/Email Capable:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.internetEmailCapable" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Touch Screen:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.touchScreen" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Color Category:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.colorCategory" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Wireless Capability:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.wirelessCapability" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Operating System:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.operatingSystem" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Data Plan Required:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.dataPlanRequired" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Built-In GPS:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.builtinGps" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Screen Size (Measured Diagonally):</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.screenSize" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Bluetooth Version:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.bluetoothVersion" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Keyboard Type:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.keyboardType" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Front Facing Camera MP Rating:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.frontCamera" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>Rear Facing Camera MP Rating:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.rearCamera" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label>UPC:</label>
				</dt>
				<dd>
					<s:textfield type="text" name="specification.upc" id="" size="54" value="" />
				</dd>
			</dl>
			<dl>
				<dt>
					<label></label>
				</dt>
			</dl>
			<dl class="submit">
				<s:submit key="" cssClass="button" name="btnsubmit" type="submit" value="SubmitNew"></s:submit>
				
			</dl>
		</fieldset>
	</s:form>
</div>